package com.rd.student.wulian.wanggaobo.day0801;

public class ArrSort {
    public static void main(String[] args) {
        int[] array = {60, 77, 33, 44, 55, 90, 99};
        int index = 0;
        int min = array[0];

        for (int i = 1; i < array.length; i++) {
            if (array[i] < min) {
                min = array[i];
                index = i;
            }
        }

        int temp = array[0];
        array[0] = min;
        array[index] = temp;

        for (int num : array) {
            System.out.print(num + ",");
        }
    }
}